function check_order(){
	var i=0;
	var portal_order = new Array();		
	{% for portal in portal_list %}
		var another_obj=document.getElementById("{{portal['name']}}");
		for(var j=0;j<i;j++){
			if(parseInt(another_obj.value.split('-')[1])==portal_order[j]){
				alert("The portal order must be unique");
				return false;
			}
		}
		portal_order[i]=parseInt(another_obj.value.split('-')[1]);
		i++;
	{% endfor %}
	return true;
}
